When calling MPArmTimer
, you can pass values of type OptionBits
to specify any optional actions.
enum {
kMPPreserveTimerIDMask = 1L << 0,
kMPTimeIsDeltaMask = 1L << 1,
kMPTimeIsDurationMask = 1L << 2
};
Constant Descriptions
kMPPreserveTimerID
Specifying this mask prevents the timer from being deleted when it expires.
kMPTimeIsDeltaMask
Specifying this mask indicates that the specified time should be added to the previous expiration time to form the new expiration time. You can use this mask to compensate for timing drift caused by the finite amount of time required to arm the timer, receive the notification, and so on.
kMPTimeIsDurationMask
Specifying this mask indicates that the specified expiration time is of type Duration
. You can use this mask to avoid having to call time conversion routines when specifying an expiration time.